package com.sharelords.demo.common.enums;

/**
 * @description: 返回码相关枚举项
 *
 * @author: 千古龙少
 * @time: 2019/11/19 23:36
 */
public enum ReturnCodeEnum {
    SUCCESS(0, "成功"),
    FAILED(-1, "失败"),
    ERROR(500, "系统异常"),

    RECORD_NOT_EXIST(400, "记录不存在"),

    PARAM_BLANK(701, "参数缺失"),
    PARAM_ERROR(702, "参数有误"),
    ;

    /**
     * 返回码
     */
    private Integer returnCode;
    /**
     * 返回消息
     */
    private String returnMsg;

    private ReturnCodeEnum(Integer returnCode, String returnMsg) {
        this.returnCode = returnCode;
        this.returnMsg = returnMsg;
    }

    public Integer getReturnCode() {
        return returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }
}
